@model int?
@{
    var descriptor = ViewData.ModelMetadata.GetViewDescriptor();
}
@Html.TextBox("", Model, descriptor?.ToHtmlProperties())